package entity

type SupervisorWithDraw struct {
	Id             int64   `gorm:"column:id;primary_key" json:"id"`
	SupervisorId   string  `gorm:"column:supervisor_id;type:varchar(255);not null" json:"supervisor_id"`
	SupervisorName string  `gorm:"column:supervisor_name;type:varchar(255);not null" json:"supervisor_name"`
	ItemList       string  `gorm:"column:item_list;type:varchar(255);not null" json:"item_list"`
	OrderCount     int     `gorm:"column:order_count;type:integer;not null" json:"order_count"`
	TotalAmount    float64 `gorm:"column:total_amount;type:bigint;not null" json:"total_amount"`
	DeductAmount   float64 `gorm:"column:deduct_amount;type:bigint;not null" json:"deduct_amount"`
	Status         int     `gorm:"column:status;type:integer;not null" json:"status"`
	Desc           string  `gorm:"column:desc;type:varchar(255);not null" json:"desc"`
	OperatorId     string  `gorm:"column:operator_id;type:varchar(255);not null" json:"operator_id"`
	Operator       string  `gorm:"column:operator;type:varchar(255);not null" json:"operator"`
	CreatedAt      int64   `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt      int64   `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (s *SupervisorWithDraw) TableName() string {
	return "supervisor_with_draw"
}
